package com.shopx.auth.dao.db1;


import com.shopx.auth.bean.SysUrl;
import com.shopx.auth.model.SysUrlModel;
import com.shopx.config.bean.SysDict;
import com.shopx.dal.mysql.SqlMapper;

import java.util.List;
import java.util.Map;

@SqlMapper
public interface SysUrlDao {
  int insertSelective(SysUrl sysUrl);

  int updateByPrimaryKeySelective(SysUrl sysUrl);

  int deleteByPrimaryKey(SysUrl sysUrl);

  void deleteBatch(Map map);

  SysUrlModel selectByPrimaryKey(SysUrl sysUrl);

  int selectCount(SysUrlModel sysUrl);

  List<SysUrlModel> selectList(SysUrlModel sysUrl);

  /**
   * @param sysUrl
   * @description:查询角色对应菜单
   * @author:lituo
   * @date:2021-01-05 9:42 AM
   * @return:java.util.List<com.shopx.auth.bean.SysUrl>
   */
  List<SysUrlModel> selectRoleUrl(SysUrlModel sysUrl);

  /**
   * @param sysUrl
   * @description:查询角色对应功能
   * @author:lituo
   * @date:2021-01-05 9:43 AM
   * @return:java.util.List<com.shopx.auth.bean.SysUrl>
   */
  List<SysUrl> selectRoleFunction(SysUrlModel sysUrl);

  /**
   * @param sysUrl
   * @description:验证角色是否拥有菜单访问权限
   * @author:lituo
   * @date:2021-01-05 9:43 AM
   * @return:int
   */
  int selectRoleHaveUrl(SysUrlModel sysUrl);
}

